#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   16:48
# Author     : Y4
# Site       : 
# File       : 参数验证.py

from validator import Required, validate, Equals

rules = {
    "foo": [Required, Equals(123)]
}
data = {
    "foo": None
}
valid, errors = validate(rules, data)
print(valid)
print(errors)
